package com.glp.services.impl;

import com.glp.dao.custom.UserMapper;
import com.glp.pojo.User;
import com.glp.services.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String loginName, String password) {
        return userMapper.selectByLoginName(loginName);
    }

}
